import request from '@/utils/request'

// 查询限时卡券场次列表
export function listLimitCouponMatchesConfig(query) {
  return request({
    url: '/limitCouponMatchesConfig/limitCouponMatchesConfig/list',
    method: 'get',
    params: query
  })
}

// 查询限时卡券场次详细
export function getLimitCouponMatchesConfig(id) {
  return request({
    url: '/limitCouponMatchesConfig/limitCouponMatchesConfig/' + id,
    method: 'get'
  })
}

// 新增限时卡券场次
export function addLimitCouponMatchesConfig(data) {
  return request({
    url: '/limitCouponMatchesConfig/limitCouponMatchesConfig',
    method: 'post',
    data: data
  })
}

// 修改限时卡券场次
export function updateLimitCouponMatchesConfig(data) {
  return request({
    url: '/limitCouponMatchesConfig/limitCouponMatchesConfig',
    method: 'put',
    data: data
  })
}

// 删除限时卡券场次
export function delLimitCouponMatchesConfig(id) {
  return request({
    url: '/limitCouponMatchesConfig/limitCouponMatchesConfig/' + id,
    method: 'delete'
  })
}
